package com.onpositive.dataminer.rcp.views;

import com.onpositive.dataminer.core.InferenceFormulasMetaAcccessor;
import com.onpositive.semantic.model.api.meta.IWritableMeta;
import com.onpositive.semantic.model.api.property.IProperty;

public class PropertyInference extends PropertyView {

	public PropertyInference() {
		super("ui/propertyInference.dlf");
	}

	@Override
	protected Object transform(Object value) {
		if (value != null) {
			IProperty p = (IProperty) value;
			return new InferenceFormulasMetaAcccessor(
					(IWritableMeta) p.getMeta());
		}
		return super.transform(value);
	}
}
